
import request from '@/api/index.js'
const state = {
	datailList:{}
}
const mutations = {
	SET_DATAIL(state,datailList){
		state.datailList = datailList
	}
}
const actions = {
	async getdatail({commit}){
		const result = await request({url:"/goods/detail",data:{goods_id } })
		console.log(result);
		commit('SET_DATAIL',result)
	}
	
}
const getters = {
	
}

export default{
	namespaced:true,
	state,
	mutations,
	actions,
	getters
}